package  com.pcbly.web.business.user;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.user.UserDetailBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface UserDetailService extends BaseService<UserDetailBean> {

	UserDetailBean getUserDetailBeanById(String id) throws Exception;
	
	void removeUserDetailBeanById(String id) throws Exception;
	
	void removeUserDetailBeanByIds(String ids) throws Exception;
	
	UserDetailBean saveUserDetailBean(UserDetailBean user) throws Exception;
	
	UserDetailBean updateUserDetailBean(UserDetailBean user) throws Exception;
	
	Page<UserDetailBean>  findUserDetailBeanByCond(UserDetailBean bean,
			Page<UserDetailBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveUserDetailBeanExt(String sql) throws Exception;

	String findUserDetailBeanExtCreate(String tableName) throws Exception;

	String findUserDetailBeanExtEdit(String tableName, String id)
			throws Exception;

	String findUserDetailBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasUserDetailBeanExtData(String tableName, String id)
			throws Exception;
}